<?php

namespace backend\widgets;

use yii\base\Widget;


class GridWidget extends Widget
{
    public $dataProvider;
    public $searchModel;
    public $gridColumns;

    public function init()
    {
        parent::init();
    }

    public function run(): string
    {
        return $this->render(
            'grid', [
            'searchModel'  => $this->searchModel,
            'dataProvider' => $this->dataProvider,
            'gridColumns'  => $this->gridColumns,
        ]);
    }
}